package com.xunk.system.feign;

import com.xunk.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ProjectName: xunk
 * @Package: com.xunk.buz.feign
 * @ClassName: EquipmentClient
 * @Author: luanzhiwei
 * @Description: 设备信息调用服务
 * @Date: 2021/3/30 9:32
 * @Version: 1.0
 */
@FeignClient(value = "xunk-equipment")
@Component
public interface EquipmentClient {

    /**
     * 获取曼顿单个设备信息
     *
     * @param deviceSn
     * @return
     */
    @GetMapping(value = "/airswitch/mandun/getBox")
    AjaxResult getBox(@RequestParam(name = "deviceSn") String deviceSn);

}
